/*
 * ==========================================================================*\
 * | $Id$
 * |*-------------------------------------------------------------------------*|
 * | Copyright (C) 2009 Virginia Tech | | This file is part of CloudSpace. | |
 * CloudSpace is free software; you can redistribute it and/or modify | it under
 * the terms of the GNU General Public License as published | by the Free
 * Software Foundation; either version 3 of the License, or | (at your option)
 * any later version. | | CloudSpace is distributed in the hope that it will be
 * useful, | but WITHOUT ANY WARRANTY; without even the implied warranty of |
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | GNU General
 * Public License for more details. | | You should have received a copy of the
 * GNU General Public License | along with CloudSpace; if not, see
 * <http://www.gnu.org/licenses/>.
 * \*==========================================================================
 */

package cloudspace.demoitem;

/**
 * Demo Item bean represents the characteristics of a demo item. 
 * It is the equivalent Java POJO to the entry in the DemoItemsData.xml file,
 * which is going to be used to showcase student projects.
 * 
 * @author Sunil Kamalakar
 *
 */
public class DemoItemBean {

	//The absolute launch point to the actual demo-able project.
	private String  programURI;
	
	//The relative launch point for the image used as thumbnail
    private String  imageURI;
    
    //The tooltip and alternative text HTML tag used for the thumbnail.
    private String  tooltip;
    
    //Indicates whether the demo item is visible to the user or not.
    //This is a turn on/off feature, where the admin can control the 
    //visibility without deleting the entry.
	private boolean visibility;
	
	//The constructor for the bean
	public DemoItemBean(String programURI, String imageURI, String tooltip, boolean visibility) {
        this.programURI = programURI;
        this.imageURI = imageURI;
        this.tooltip = tooltip;
		this.visibility = visibility;
    }
	
	//The getters
    public String getProgramURI() { return this.programURI; }
    public String getImageURI() { return this.imageURI; }
    public String getTooltip() { return this.tooltip; }
	public boolean getVisibility() { return this.visibility;}
	
	@Override
	public String toString() {
		return "DemoItemBean [programURI=" + programURI + ", imageURI="
				+ imageURI + ", tooltip=" + tooltip + ", visibility="
				+ visibility + "]";
	}
}


